package com.bjpowernode.money.service;

import com.bjpowernode.money.PageModel;
import com.bjpowernode.money.model.BidInfo;

import java.util.List;
import java.util.Map;

public interface BidInfoService {

    Double queryBidInfoMoneySum();

    /**
     *   产品详情页面，根据loadId查询对应的投资信息
     * @param loanId
     * @return
     */
    List<BidInfo> queryBidInfoByLoadId(int loanId,PageModel pageModel);

    //产品详情页面 实现投资信息的分页
    Long queryBidInfoCountByLoadId(int loanId);

    /**
     *投资:投资
     * @param parasMap
     * @return
     */
    String invest(Map<String, Object> parasMap);
}
